﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ClientModel;
using ClientInterfaces;

namespace ClientController
{
    public class Cls_ClientController
    {
        Cls_TaskControl taskControl;
        Cls_ClientAccessCollection clientAccessCollection;

        public Cls_ClientController()
        {
            taskControl = new Cls_TaskControl();
            clientAccessCollection = new Cls_ClientAccessCollection();
        }

        public string GetCurrentPassword()
        {
            return clientAccessCollection.GetCurrentPassword();
        }

        #region Restrictions

        public void ShowTaskBar()
        {
            taskControl.ShowTaskbar();
        }

        public void HideTaskBar()
        {
            taskControl.HideTaskbar();
        }

        public void BlockTaskManager()
        {
            taskControl.BlockTaskManager();
        }

        public void UnblockProcesses()
        {
            taskControl.Unblock();
        }

        public void KillProcesses()
        {
            taskControl.FindAndKillProcess();
        }

        #endregion        
    }
}
